<?php

class Rcp_Methods_Data_Lecture {

  /**
   *
   * @var int
   */
  public $id;

  /**
   *
   * @var string 
   */
  public $groupNamePl;

  /**
   *
   * @var string 
   */
  public $groupNameEn;

  /**
   *
   * @var string 
   */
  public $languageNameEn;

  /**
   *
   * @var string 
   */
  public $languageNamePl;

  /**
   *
   * @var Rcp_Methods_Data_LectureHourDef 
   */
  public $hours;

  public function __construct(RcpLectures $lecture) {
    $this->id = $lecture->getId();
    $this->groupNamePl = $lecture->getGroupNamePl();
    $this->groupNameEn = $lecture->getGroupNameEn();
    $this->languageNameEn = $lecture->getLanguageNameEn();
    $this->languageNamePl = $lecture->getLanguageNamePl();
    foreach ($lecture->getLecutreHourDefss() as $lectureHourDef)
      $this->hours[] = new Rcp_Methods_Data_LectureHourDef($lectureHourDef);
  }

}
